1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35 package net.sf.pmr.agilePlanning.service;
36
37 import java.util.Date;
38 import java.util.Set;
39
40 import net.sf.pmr.agilePlanning.domain.release.Release;
41 import net.sf.pmr.keopsframework.domain.validation.Errors;
42
43 /***
44 * @author Arnaud Prost (arnaud.prost@gmail.com)
45 */
46 public interface ReleaseService {
47
48 /***
49 * find releases for a projet (using his persistanceId)
50 * @param projectPersistanceId projectPersistanceId
51 * @return Iteration
52 */
53 Set findByProjectPersistanceId(final int projectPersistanceId);
54
55 /***
56 * find a release by its persistance Id
57 * @param persistanceId persistanceId
58 * @return Release
59 */
60 Release findByPersistanceId(final int persistanceId);
61
62 /***
63 * Add a release
64 * @param projectPersistanceId id of the agileProject
65 * @param number of the release
66 * @param date of the release
67 * @return errors errors
68 */
69 Errors add(final int projectPersistanceId, final String number, final Date date);
70
71 /***
72 * Update a release
73 * @param projectPersistanceId id of the agileProject
74 * @param number of the release
75 * @param date of the release
76 * @param persistanceId of the release
77 * @param persistanceVersion persistance version
78 * @return errors errors
79 */
80 Errors update(final int projectPersistanceId, final String number, final Date date, final int persistanceId, final long persistanceVersion);
81
82 /***
83 // * Delete a release
84 // * @param agileProjectPersistanceId id of the agileProject
85 // * @param persistanceId of the release
86 // * @param persistanceVersion persistance version
87 // * @return errors errors
88 // */
89
90
91 }